Optimal. Leaf size=24 \[ \frac {b (b \csc (e+f x))^{-1+n}}{f (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2701, 30}
\begin {gather*} \frac {b (b \csc (e+f x))^{n-1}}{f (1-n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2701
Rubi steps
\begin {align*} \int \cos (e+f x) (b \csc (e+f x))^n \, dx &=-\frac {b \text {Subst}\left (\int x^{-2+n} \, dx,x,b \csc (e+f x)\right )}{f}\\ &=\frac {b (b \csc (e+f x))^{-1+n}}{f (1-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 23, normalized size = 0.96 \begin {gather*} -\frac {b (b \csc (e+f x))^{-1+n}}{f (-1+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(65\) vs.
\(2(24)=48\).
time = 2.55, size = 66, normalized size = 2.75
method | result | size |
norman | \(-\frac {2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right ) {\mathrm e}^{n \ln \left (\frac {b \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}\right )}}{f \left (-1+n \right ) \left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}\) | \(66\) |
risch | \(\text {Expression too large to display}\) | \(1312\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 31, normalized size = 1.29 \begin {gather*} -\frac {b^{n} \sin \left (f x + e\right )^{-n} \sin \left (f x + e\right )}{f {\left (n - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.27, size = 31, normalized size = 1.29 \begin {gather*} -\frac {\left (\frac {b}{\sin \left (f x + e\right )}\right )^{n} \sin \left (f x + e\right )}{f n - f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (b \csc {\left (e + f x \right )}\right )^{n} \cos {\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.32, size = 28, normalized size = 1.17 \begin {gather*} -\frac {\sin \left (e+f\,x\right )\,{\left (\frac {b}{\sin \left (e+f\,x\right )}\right )}^n}{f\,\left (n-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________